<?php

namespace App\Interfaces;


/*
 * 订单接口
 * 
 * @date:2015/12/18
 * @author:Leen
 */
use App\Address;
use App\OrderPay;
use App\User;

interface OrderService
{
    /**
     * @param $cartInfo
     * @return mixed
     * 根据购物车查询的信息创建订单
     */
    public function createOrder($cartInfo); //创建订单
    public function cancelOrder(OrderPay $orderPay);//取消订单
    public function OrderDetail($orderId);//订单详情
    public function bindAddress(Address $address,OrderPay $orderPay);
    public function OrderHanle(OrderPay $orderPay);//订单处理
    public function bindCouPon($user_coupon_id,OrderPay $orderPay);//绑定优惠券
    public function orderList();
    public function sureOrder(OrderPay $orderPay);//确认订单
    public function refundOrder(OrderPay $orderPay);//退款操作
}//end interface OrderService